import { SERVER_BASE, http } from "./config";
import qs from "qs";

export default {
    login(account,password){
        let params = {
            userAccount: account,
            userPassword: password
        }
        let data_json = qs.stringify(params)
        return http.post(SERVER_BASE+"/user/login", data_json)
    },
    changePassword(change_password){
        return http.post(SERVER_BASE+"/changepass",change_password)
    }
};
